package com.ts.api.module.api.convert.platform.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 *  平台手机号掩码实体-多个实体
 *
 *  @author Pan
 */
@Data
public class RespPlatformMultiPhoneMaskDataExchange {

    /** 平台手机号掩码实体 */
    @JSONField(alternateNames = {"data"})
    private List<RespPlatformPhoneMaskDataExchange> listPhoneMask;
    /** 是否业务判断成功 */
    @JSONField(serialize = false)
    private Boolean hasBizSuc = false;

    /**
     *  构建失败
     *
     *  @return RespPlatFormDataExchangeMultiPhoneMask
     */
    public static RespPlatformMultiPhoneMaskDataExchange ofFail() {
        RespPlatformMultiPhoneMaskDataExchange resp = new RespPlatformMultiPhoneMaskDataExchange();
        resp.setHasBizSuc(false);
        return resp;
    }

    /**
     *  构建成功
     *
     *  @return RespPlatformMultiPhoneMaskDataExchange
     */
    public static RespPlatformMultiPhoneMaskDataExchange ofSuc() {
        RespPlatformMultiPhoneMaskDataExchange resp = new RespPlatformMultiPhoneMaskDataExchange();
        resp.setHasBizSuc(true);
        return resp;
    }
}
